//加载公共样式
require('../../assets/css/index.less')

//加载自己的样式
require('./ad.less')


window.onload = () => {
    let adNum = document.querySelector('#adNum')

    function Time() {
        let timeID = window.setInterval(() => {
            let toNum = adNum.textContent - 1
            adNum.textContent = toNum
            if (toNum == 1) {
                window.clearInterval(timeID)
                window.location.href = './register.html'
            }
        }, 1000)
    }
    Time()
}



